package com.kern.action;

import com.kern.pojo.User;
import com.opensymphony.xwork2.Action;

/**
 * Created by caoshi at 20:59 2021-12-01
 */
public class HelloWorldAction implements Action {

    private String name;
    private String message;
    private User user;


    @Override
    public String execute() throws Exception {
        System.out.println("HelloWorldAction.execute name = " + this.name);
        System.out.println("user = " + user);
        message = "My Message";
        return SUCCESS;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
